﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IRepository;
using Infrastructure;
using Models;

namespace RepositoryMSSQL
{
    public class CommonRepository : ICommonRepository
    {
        internal CommonRepository() { }

        public virtual void Create<T>(T obj)
        {
            MethodHelper.ExecuteMethod(obj, "Create");
        }

        public virtual void Update<T>(T obj)
        {
            MethodHelper.ExecuteMethod(obj, "Update");
        }

        public virtual void Delete(string code)
        {
            throw new NotImplementedException();
        }

        public virtual List<T> List<T>()
        {
            throw new NotImplementedException();
        }

        public virtual T Get<T>(string code)
        {
            throw new NotImplementedException();
        }
    }
}
